package dryven.view.engine.parser.componentinvocation;

import java.util.HashMap;
import java.util.Map;

import dryven.view.engine.component.childzone.ChildZoneBindings;
import dryven.view.engine.component.childzone.ChildZoneCallback;
import dryven.view.engine.parser.parts.ChildZonePart;

public class ChildZoneBindingsImpl implements ChildZoneBindings {

	private Map<String, ChildZonePart> _parts = new HashMap<String, ChildZonePart>();
	
	@Override
	public ChildZoneCallback getChildZoneCallback(String name) {
		return _parts.get(name);
	}
	
	public ChildZonePart getChildZonePart(String name) {
		return _parts.get(name);
	}
	
	public void setChildZonePart(String name, ChildZonePart part) {
		_parts.put(name, part);
	}
	
	public Iterable<ChildZonePart> getParts() {
		return _parts.values();
	}

}
